<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>React01</title>

</head>

<body>
  <div class="container"></div>

  <!-- react核心库 -->
  <script src="./js/react.development.js"></script>
  <!-- react拓展库 用于支持react操作dom -->
  <script src="./js/react-dom.development.js"></script>
  <script src="./js/babel.min.js"></script>
  <script type="text/babel">
    /**
     * babel作用 => jsx -> js
     */

    // 1.创建虚拟dom
    const VDOM = <h1>Hello, React!</h1> // 此处一定不写引号 jsx语法

    // 2.渲染虚拟dom到页面 (vdom, 容器)
    ReactDOM.render(VDOM, document.querySelector('.container'))
  </script>
</body>

</html>